﻿<phone:PhoneApplicationPage 
    x:Class="XiaMiRingtone.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" Opacity="1">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush  x:Name="Ib" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="150"/>
                <RowDefinition Height="350"/>
                <RowDefinition Height="250"/>
            </Grid.RowDefinitions>
            
            <StackPanel Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="0,30,0,0">
                <TextBlock Name="tbSongName" Text="" HorizontalAlignment="Center" Height="76" Width="404" TextAlignment="Left" VerticalAlignment="Bottom" FontSize="36" />
                <TextBlock Name="tbSonger" Text="" HorizontalAlignment="Center" Height="56" Width="358" TextAlignment="Left" FontSize="28" Margin="0,-7,0,0" />
            </StackPanel>

            <StackPanel Grid.Row="1">
                <Image Name="iAlbumImage" Width="300" Height="300" Stretch="UniformToFill" HorizontalAlignment="Left" Margin="50,0,0,0" />
                <Slider Name="sTime" Margin="50,-25,0,0" Width="300" Height="80" HorizontalAlignment="Left" IsHitTestVisible="False" IsEnabled="True" IsTabStop="False" Visibility="Collapsed"></Slider>
                <Slider Name="slider1" Maximum="100" Margin="250,-350,0,50" Orientation="Vertical" Visibility="Collapsed"></Slider>
                <StackPanel>
                    <TextBlock Name="tbTime" Text="" Margin="50,-60,0,0" Width="144" HorizontalAlignment="Left" TextAlignment="Left" FontSize="24" Height="32" />
                </StackPanel>
                
            </StackPanel>
            <StackPanel Grid.Row="2">
                
            </StackPanel>
            
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity="0.3">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.download.rest.png" Text="下载" Click="ApplicationBarIconButton_Click_1" />
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.transport.ff.rest.png" Text="换歌" Click="ApplicationBarIconButton_Click" />
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="铃音" Click="ApplicationBarMenuItem_Click" />
                <shell:ApplicationBarMenuItem Text="设置" Click="ApplicationBarMenuItem_Click_1" />
                <shell:ApplicationBarMenuItem Text="关于" Click="ApplicationBarMenuItem_Click_2" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>